package user;

import book.BookList;
import ioperation.IOPeration;

/**
 * Created with Intellij IDEA
 * Description
 * User:ASUS
 * Date:2024-08-04
 * Time:22:56
 */
public abstract class User {
    protected String name;
    protected IOPeration[] ioPerations;
    public User(String name){
        this.name=name;
    }
    public abstract int menu();
    public void  doIoperation(int choice, BookList bookList){
        ioPerations[choice].work(bookList);
    }
}
